package com.xiaoyin.community.Domain;

/**
 * Created by yinjianping@baidu.com on 2018/7/12.
 *
 * @Description:
 * @Modified By:
 */
public class Result<E> {
    /**错误码*/
    private Integer code;

    /**错误信息*/
    private String message;

    /**返回值*/
    private E data;

    @Override
    public String toString() {
        return "Reult{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setData(E data) {
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public E getData() {
        return data;
    }
}
